<br/><br/>
<?php 
$this->Html->loadCss("plugins/jqueryui/estilo/jquery-ui.custom");
$url  = $this->Html->getLink(LINK . "/formulario/");
$custom = <<<CUSTOM
            var temp = "<a href='$url" + options.rowId + "' class='ui-icon ui-icon-pencil' target='__blank'></a>";
            return temp;
CUSTOM;


$this->LoadResource("grid", "grid");
$this->grid->setEditFormIntegration($custom);

$this->LoadModel('usuario/login', 'uo');
if(!$this->uo->UserIsAdmin()){
    $this->grid->setGridOptions(array("search", "excel","pdf", "csv", "columns"));
}
$this->grid->execute("", $model);


?>